#!/usr/bin/env python3
# encoding: utf-8

"""
@version: 1.0
@author: 周永波
@file: hello.py
@time: 2020/8/7 10:03
"""
from flask_restful import Resource

from demoApp.models.baseInfo import User
from demoApp.setting.ret import views_rest

views = views_rest("register", __name__)


@views.route("/hello")
def hello():
    return 'hello world'

class hells(Resource):

    def get(self):
        user = User.query.filter_by(userName='admin').first()
        return user

    def list(self):

        return 'list'


